package com.ejlchina.tool.util

//******************************************下行指令**********************************************************

//获取Token-下发
const val COMMAND_TOKEN_DOWNWARD = "01010500"

//设备重启进入升级模式-下发
const val RELOAD_AND_UPGRADE_DOWNLOAD = "EE010202"

//获取电机相关参数-下发
const val COMMAND_GET_ELECTRICAL_MACHINERY_DOWNWARD = "03010101"

//获取NPN输入信号-下发
const val COMMAND_NPN_SIGNAL_INPUT_GET_DOWNWARD = "03010102"

//设置NPN输入信号-下发
const val COMMAND_NPN_SIGNAL_INPUT_SET_DOWNWARD = "02010502"

//获取扩展窗口相关参数-下发
const val COMMAND_EXTEND_SERIAL_PORT_GET_DOWNWARD = "03010103"

//设置扩展接口-下发
const val COMMAND_EXTEND_SERIAL_PORT_SET_DOWNWARD = "02010603"

//设置电机相关参数-下发
const val COMMAND_SET_ELECTRICAL_MACHINERY_DOWNWARD = "02011D01"

//传输文件-下发
const val COMMAND_UPLOAD_FILE = "0601"

//开关量数据-下发
const val COMMAND_SWITCH_DOWNWARD = "04010101"

//固件版本号获取-下发
const val COMMAND_FIRMWARE_VERSION_DOWNWARD = "EE01020101"

//温度警报获取-下发
const val COMMAND_TEMPERATURE_ALARM_GET_DOWNWARD = "03010104"

//温度警报设置-下发
const val COMMAND_TEMPERATURE_ALARM_SET_DOWNLOAD = "02010504"

//满溢测距获取-下发
const val COMMAND_FULL_AND_DISTANCE_GET_DOWNWARD = "03010106"

//满溢测距设置-下发
const val COMMAND_FULL_AND_DISTANCE_SET_DOWNWARD = "02010A06"

//获取当前重量-下发
const val COMMAND_CURRENT_WEIGHT_GET_DOWNWARD = "04010105"

//称重传感器标定-下发
const val COMMAND_WEIGHT_CALIBRATION_DOWNWARD = "02010607"

//照明时间获取-下发
const val COMMAND_LIGHT_TIME_GET_DOWNWARD = "03010108"

//照明时段设置-下发
const val COMMAND_LIGHT_TIME_SET_DOWNWARD = "02010708"

//音量获取-下发
const val COMMAND_VOLUME_GET_DOWNWARD = "0301010A"

//音量设置-下发
const val COMMAND_VOLUME_SET_DOWNWARD = "0201020A"

//复用功能获取-下发
const val COMMAND_REUSE_GET_DOWNLOAD = "0301020900"

//复用功能设置-下发
const val COMMAND_REUSE_SET_DOWNLOAD = "02010309"

//扫码刷卡获取-下发
const val COMMAND_SCAN_CARD_GET_DOWNWARD = "0301010B"

//扫码刷卡设置-下发
const val COMMAND_SCAN_CARD_SET_DOWNWARD = "0201020B"

//获取当前温度-下发
const val COMMAND_TEMPERATURE_GET_DOWNWARD = "04010104"

//获取满溢状态-下发
const val COMMAND_FULL_STATE_GET_DOWNWARD = "04010102"

//电磁锁控制-下发
const val COMMAND_ELE_LOCK_DOWNWARD = "0501020301"

//获取门机状态-下发
const val COMMAND_DOOR_STATE_GET_DOWNWARD = "04010103"

//获取门机控制-下发
const val COMMAND_DOOR_CONTROL_GET_DOWNWARD = "03010105"

//设置门机控制-下发
const val COMMAND_DOOR_CONTROL_SET_DOWNWARD = "02010605"

//设置门机状态-下发
const val COMMAND_DOOR_STATE_SET_DOWNWARD = "05010202"

//授权控制-下发
const val COMMAND_AUTH_DOWNWARD= "05010601"

//获取称重传感器状态-下发
const val COMMAND_WEIGHT_CALIBRATION_GET_DOWNWARD ="03010107"

const val COMMAND_SCAN_DEVICE_DOWNWARD = "04010108"

//获取当前温度-单机版-下发
const val COMMAND_TEMPERATURE_GET_OFFLINE_DOWNWARD = "04010204"

//获取推杆相关参数-单机版-下发
const val COMMAND_PUSH_ROD_GET_DOWNWARD = "03010201"

//设置推杆参数-下发
const val COMMAND_PUSH_ROD_SET_DOWNWARD = "02011D01"

//获取NPN信号输入-下行
const val COMMAND_SIGNAL_INPUT_GET_OFFLINE_DOWNWARD = "03010102"

//获取门机状态-下发
const val COMMAND_DOOR_STATE_GET_OFFLINE_DOWNWARD = "04010203"

//设置门机状态-下发
const val COMMAND_DOOR_STATE_SET_OFFLINE_DOWNLOAD = "05010302"


//RS485从机地址获取-下发
const val COMMAND_485_SLAVE_GET_DOWNLOAD = "0301010C"

//RS485从机地址设置-下发
const val COMMAND_485_SLAVE_SET_DOWNLOAD = "0201020C"


//******************************************上行指令**********************************************************

//获取Token-上行
const val COMMAND_TOKEN_UPWARD = "010204"

//设备重启进入升级模式-上行
const val RELOAD_AND_UPGRADE_UPLOAD = "EE020202"

//获取电机相关参数-上行
const val COMMAND_ELECTRICAL_MACHINERY_UPWARD = "03021D01"

//设置点击相关参数-上行
const val COMMAND_ELECTRICAL_MACHINERY_SET_UPWARD = "02021E01"

//文件上传结果-上行 文件上传结果-上行
const val COMMAND_FIRMWARE_UPGRADE_RESULT_UPWARD = "06020B01"

//开关数据
const val COMMAND_SWITCH_UPWARD = "04020501"

//固件版本-上行
const val COMMAND_FIRMWARE_VERSION_UPWARD = "EE020301"

//获取NPN输入信号-上行
const val COMMAND_NPN_SIGNAL_INPUT_GET_UPWARD = "03020502"

//设置NPN输入信号-上行
const val COMMAND_NPN_SIGNAL_INPUT_SET_UPWARD = "02020602"

//获取扩展口-上行
const val COMMAND_EXTEND_SERIAL_PORT_GET_UPWARD = "03020603"

//设置扩展接口-上行
const val COMMAND_EXTEND_SERIAL_PORT_SET_UPWARD = "02020703"

//温度警报获取-上行
const val COMMAND_TEMPERATURE_ALARM_GET_UPWARD = "03020504"

//温度警报设置-上行
const val COMMAND_TEMPERATURE_ALARM_SET_UPWARD = "02020604"

//满溢测距获取-上行
const val COMMAND_FULL_AND_DISTANCE_GET_UPWARD = "03020A06"

//满溢测距设置-上行
const val COMMAND_FULL_AND_DISTANCE_SET_UPWARD = "02020B06"

//获取当前重量-上行
const val COMMAND_CURRENT_WEIGHT_GET_UPWARD = "04020605"

//称重传感器标定-上行
const val COMMAND_WEIGHT_CALIBRATION_UPWARD = "02020707"

//照明时间获取-上行
const val COMMAND_LIGHT_TIME_GET_UPWARD = "03020708"

//照明时间设置-上行
const val COMMAND_LIGHT_TIME_SET_UPWARD = "02020808"

//音量获取-上行
const val COMMAND_VOLUME_GET_UPWARD = "0302020A"

//音量设置-上行
const val COMMAND_VOLUME_SET_UPWARD = "0302020A"

//复用功能获取-上行
const val COMMAND_REUSE_GET_UPWARD = "03020309"

//复用功能获取-全关闭-上行
const val COMMAND_REUSE_GET_All_CLOSE_UPWARD = "03020209"

//复用功能设置-上行
const val COMMAND_REUSE_SET_UPWARD = "02020409"

//扫码刷卡获取-上行
const val COMMAND_SCAN_CARD_GET_UPWARD = "0302020B"

//扫码刷卡设置-上行
const val COMMAND_SCAN_CARD_SET_UPWARD = "0202030B"

//获取当前温度-上行
const val COMMAND_TEMPERATURE_GET_UPWARD = "04020304"

//获取当前温度-单机版-上行
const val COMMAND_TEMPERATURE_GET_UPWARD_OFFLINE = "04020404"

//设置电机相关参数-单机版-上行
const val COMMAND_SET_ELECTRICAL_MACHINERY_UPWARD = "02021E01"

//获取满溢状态-上行
const val COMMAND_FULL_STATE_GET_UPWARD = "04020802"

//电磁锁控制-上行
const val COMMAND_ELE_LOCK_UPWARD = "05020303"

//获取门机控制-上行
const val COMMAND_DOOR_CONTROL_GET_UPWARD = "03020605"

//获取门机状态-上行
const val COMMAND_DOOR_STATE_GET_UPWARD = "04020203"

//门机控制设置-上行
const val COMMAND_DOOR_CONTROL_SET_UPWARD = "02020705"

//设置门机状态-上行
const val COMMAND_DOOR_STATE_SET_UPWARD = "05020302"

//授权控制
const val COMMAND_AUTH_UPWARD = "05020707"

//获取称重传感器状态-上行
const val COMMAND_WEIGHT_CALIBRATION_GET_UPWARD ="03020207"

//获取扫码头数据-上行
const val COMMAND_SCAN_DEVICE_UPWARD = ""

//获取推杆相关参数-上行
const val COMMAND_PUSH_ROD_GET_UPWARD = "03021D01"

//获取当前温度-上行
const val COMMAND_TEMPERATURE_GET_OFFLINE_UPWARD = "04020404"

//推杆参数设置-上行
const val COMMAND_PUSH_ROD_SET_UPWARD = "02021E01"

//获取NPN信号输入-上行
const val COMMAND_SIGNAL_INPUT_GET_OFFLINE_UPWARD = "03020502"

//音量设置-单机版-上行
const val COMMAND_VOLUME_SET_OFFLINE_UPWARD = "0202030A"

//获取门机状态-上行
const val COMMAND_DOOR_STATE_GET_OFFLINE_UPWARD = "04020303"

//设置门机状态-上行
const val COMMAND_DOOR_STATE_SET_OFFLINE_UPWARD = "05020402"

//RS485从机地址获取-上行
const val COMMAND_485_SLAVE_GET_UPWARD = "0302020C"

//RS485从机地址设置-上行
const val COMMAND_485_SLAVE_SET_UPLOAD = "0202030C"

//******************************************SUB指令**********************************************************
const val SUB_COMMAND_1 = "01"
const val SUB_COMMAND_2 = "02"
const val SUB_COMMAND_3 = "03"
const val SUB_COMMAND_4 = "04"
const val SUB_COMMAND_5 = "05"
const val SUB_COMMAND_6 = "06"
const val SUB_COMMAND_7 = "07"
const val SUB_COMMAND_8 = "08"
const val SUB_COMMAND_9 = "09"